import request from '../../utils/request.js'

//获取班级列表
export const getClassListAPI=(params)=>{
  return request({
    url:'teacher/cclass/page',
    method:'get',
    params:params
  })
}

//新增班级
export const createClassAPI=(params)=>{
  return request({
    url:'/teacher/cclass/push',
    method:'post',
    data:params
  })
}

//根据id查班级
export const getUpdateClassInfoAPI=(id)=>{
  return request({
    url:'/teacher/cclass/id',
    method:'get',
    params:{
      id:id
    }
  })
}

//提交修改的班级信息
export const submitUpdateClassAPI=(params)=>{
  return request({
    url:'/teacher/cclass',
    method:'put',
    data:params
  })
}